<template>
  <div class="q-pa-md q-gutter-sm">
    <t-btn label="Light" color="primary" @click="lightDialog = true" />
    <t-btn label="Dark" color="grey-8" @click="darkDialog = true" />

    <t-dialog v-model="lightDialog" persistent>
      <t-card>
        <t-bar>
          <t-icon name="arrow_forward" />
          <div>Your Next Steps</div>

          <t-space />

          <t-btn dense flat icon="close" v-close-popup>
            <t-tooltip>Close</t-tooltip>
          </t-btn>
        </t-bar>

        <t-card-section>
          Lorem ipsum dolor sit amet consectetur adipisicing elit. Rerum
          repellendus sit voluptate voluptas eveniet porro. Rerum blanditiis
          perferendis totam, ea at omnis vel numquam exercitationem aut, natus
          minima, porro labore.
        </t-card-section>

        <t-card-section class="q-pt-none">
          Lorem ipsum dolor sit amet consectetur adipisicing elit. Rerum
          repellendus sit voluptate voluptas eveniet porro. Rerum blanditiis
          perferendis totam, ea at omnis vel numquam exercitationem aut, natus
          minima, porro labore.
        </t-card-section>
      </t-card>
    </t-dialog>

    <t-dialog
      v-model="darkDialog"
      persistent
      transition-show="flip-down"
      transition-hide="flip-up"
    >
      <t-card class="bg-primary text-white">
        <t-bar>
          <t-icon name="warning" />
          <div>Are you certain?</div>

          <t-space />

          <t-btn dense flat icon="close" v-close-popup>
            <t-tooltip class="bg-white text-primary">Close</t-tooltip>
          </t-btn>
        </t-bar>

        <t-card-section>
          Lorem ipsum dolor sit amet consectetur adipisicing elit. Rerum
          repellendus sit voluptate voluptas eveniet porro. Rerum blanditiis
          perferendis totam, ea at omnis vel numquam exercitationem aut, natus
          minima, porro labore.
        </t-card-section>
      </t-card>
    </t-dialog>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        lightDialog: ref(false),
        darkDialog: ref(false),
      };
    },
  };
</script>
